<?php
require_once 'header.php';
if(isset($_GET['update'])){
    $res = $_GET['update'];
    if($res == "true"){
        $mens = "A password foi alterada com sucesso!";
    } else {
        $mens = "Não foi possível alterar a password.";
    }
    echo "<p>$mens</p>";
    require_once 'footer.php';
    exit();
}
?>
<div>
    <h1 id="Contentitle">Alterar Password</h1><br />
</div>
<div>
    <form id="altPassword" action="http://localhost/Matematrix/password.php" method="post">
        <label class="altPassLabel">Password Antiga</label><input class="altPassInput" type="password" name="oldPass"/><br />
        <label class="altPassLabel">Nova Password</label><input class="altPassInput" type="password" name="newPass"/><br />
        <label class="altPassLabel">Nova Password</label><input class="altPassInput" type="password" name="confNewPass"/><br />
    <div id="buttonsPassword">
        <input id="passwordCancel" type="reset" value="Cancelar"/><input id="passwordSubmit" type="submit" value="Alterar"/>
    </div>
    </form>
</div>
<?php
require_once 'footer.php';
?>
